package com.oozol.lieluyun.entity;

import java.util.List;

public class DockerContainers {
   private String id;
   private List<String> names;
   private String image;
   private String imageID;
   private String command;
   private long created;
   private List<Ports> ports;
   private String State;
   private String Status;
   private String containersId;
   private String portsText;

   public String getId() {
      return this.id;
   }

   public List<String> getNames() {
      return this.names;
   }

   public String getImage() {
      return this.image;
   }

   public String getImageID() {
      return this.imageID;
   }

   public String getCommand() {
      return this.command;
   }

   public long getCreated() {
      return this.created;
   }

   public List<Ports> getPorts() {
      return this.ports;
   }

   public String getState() {
      return this.State;
   }

   public String getStatus() {
      return this.Status;
   }

   public String getContainersId() {
      return this.containersId;
   }

   public String getPortsText() {
      return this.portsText;
   }

   public void setId(final String id) {
      this.id = id;
   }

   public void setNames(final List<String> names) {
      this.names = names;
   }

   public void setImage(final String image) {
      this.image = image;
   }

   public void setImageID(final String imageID) {
      this.imageID = imageID;
   }

   public void setCommand(final String command) {
      this.command = command;
   }

   public void setCreated(final long created) {
      this.created = created;
   }

   public void setPorts(final List<Ports> ports) {
      this.ports = ports;
   }

   public void setState(final String State) {
      this.State = State;
   }

   public void setStatus(final String Status) {
      this.Status = Status;
   }

   public void setContainersId(final String containersId) {
      this.containersId = containersId;
   }

   public void setPortsText(final String portsText) {
      this.portsText = portsText;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof DockerContainers)) {
         return false;
      } else {
         DockerContainers other = (DockerContainers)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$id = this.getId();
            Object other$id = other.getId();
            if (this$id == null) {
               if (other$id != null) {
                  return false;
               }
            } else if (!this$id.equals(other$id)) {
               return false;
            }

            Object this$names = this.getNames();
            Object other$names = other.getNames();
            if (this$names == null) {
               if (other$names != null) {
                  return false;
               }
            } else if (!this$names.equals(other$names)) {
               return false;
            }

            Object this$image = this.getImage();
            Object other$image = other.getImage();
            if (this$image == null) {
               if (other$image != null) {
                  return false;
               }
            } else if (!this$image.equals(other$image)) {
               return false;
            }

            Object this$imageID = this.getImageID();
            Object other$imageID = other.getImageID();
            if (this$imageID == null) {
               if (other$imageID != null) {
                  return false;
               }
            } else if (!this$imageID.equals(other$imageID)) {
               return false;
            }

            Object this$command = this.getCommand();
            Object other$command = other.getCommand();
            if (this$command == null) {
               if (other$command != null) {
                  return false;
               }
            } else if (!this$command.equals(other$command)) {
               return false;
            }

            if (this.getCreated() != other.getCreated()) {
               return false;
            } else {
               Object this$ports = this.getPorts();
               Object other$ports = other.getPorts();
               if (this$ports == null) {
                  if (other$ports != null) {
                     return false;
                  }
               } else if (!this$ports.equals(other$ports)) {
                  return false;
               }

               Object this$State = this.getState();
               Object other$State = other.getState();
               if (this$State == null) {
                  if (other$State != null) {
                     return false;
                  }
               } else if (!this$State.equals(other$State)) {
                  return false;
               }

               Object this$Status = this.getStatus();
               Object other$Status = other.getStatus();
               if (this$Status == null) {
                  if (other$Status != null) {
                     return false;
                  }
               } else if (!this$Status.equals(other$Status)) {
                  return false;
               }

               Object this$containersId = this.getContainersId();
               Object other$containersId = other.getContainersId();
               if (this$containersId == null) {
                  if (other$containersId != null) {
                     return false;
                  }
               } else if (!this$containersId.equals(other$containersId)) {
                  return false;
               }

               Object this$portsText = this.getPortsText();
               Object other$portsText = other.getPortsText();
               if (this$portsText == null) {
                  if (other$portsText != null) {
                     return false;
                  }
               } else if (!this$portsText.equals(other$portsText)) {
                  return false;
               }

               return true;
            }
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof DockerContainers;
   }

   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $id = this.getId();
      result = result * 59 + ($id == null ? 43 : $id.hashCode());
      Object $names = this.getNames();
      result = result * 59 + ($names == null ? 43 : $names.hashCode());
      Object $image = this.getImage();
      result = result * 59 + ($image == null ? 43 : $image.hashCode());
      Object $imageID = this.getImageID();
      result = result * 59 + ($imageID == null ? 43 : $imageID.hashCode());
      Object $command = this.getCommand();
      result = result * 59 + ($command == null ? 43 : $command.hashCode());
      long $created = this.getCreated();
      result = result * 59 + (int)($created >>> 32 ^ $created);
      Object $ports = this.getPorts();
      result = result * 59 + ($ports == null ? 43 : $ports.hashCode());
      Object $State = this.getState();
      result = result * 59 + ($State == null ? 43 : $State.hashCode());
      Object $Status = this.getStatus();
      result = result * 59 + ($Status == null ? 43 : $Status.hashCode());
      Object $containersId = this.getContainersId();
      result = result * 59 + ($containersId == null ? 43 : $containersId.hashCode());
      Object $portsText = this.getPortsText();
      result = result * 59 + ($portsText == null ? 43 : $portsText.hashCode());
      return result;
   }

   public String toString() {
      return "DockerContainers(id=" + this.getId() + ", names=" + this.getNames() + ", image=" + this.getImage() + ", imageID=" + this.getImageID() + ", command=" + this.getCommand() + ", created=" + this.getCreated() + ", ports=" + this.getPorts() + ", State=" + this.getState() + ", Status=" + this.getStatus() + ", containersId=" + this.getContainersId() + ", portsText=" + this.getPortsText() + ")";
   }

   public class Ports {
      private String iP;
      private int privatePort;
      private int publicPort;
      private String type;

      public String getIP() {
         return this.iP;
      }

      public int getPrivatePort() {
         return this.privatePort;
      }

      public int getPublicPort() {
         return this.publicPort;
      }

      public String getType() {
         return this.type;
      }

      public void setIP(final String iP) {
         this.iP = iP;
      }

      public void setPrivatePort(final int privatePort) {
         this.privatePort = privatePort;
      }

      public void setPublicPort(final int publicPort) {
         this.publicPort = publicPort;
      }

      public void setType(final String type) {
         this.type = type;
      }

      public boolean equals(final Object o) {
         if (o == this) {
            return true;
         } else if (!(o instanceof Ports)) {
            return false;
         } else {
            Ports other = (Ports)o;
            if (!other.canEqual(this)) {
               return false;
            } else {
               Object this$iP = this.getIP();
               Object other$iP = other.getIP();
               if (this$iP == null) {
                  if (other$iP != null) {
                     return false;
                  }
               } else if (!this$iP.equals(other$iP)) {
                  return false;
               }

               if (this.getPrivatePort() != other.getPrivatePort()) {
                  return false;
               } else if (this.getPublicPort() != other.getPublicPort()) {
                  return false;
               } else {
                  Object this$type = this.getType();
                  Object other$type = other.getType();
                  if (this$type == null) {
                     if (other$type != null) {
                        return false;
                     }
                  } else if (!this$type.equals(other$type)) {
                     return false;
                  }

                  return true;
               }
            }
         }
      }

      protected boolean canEqual(final Object other) {
         return other instanceof Ports;
      }

      public int hashCode() {
         int PRIME = 59;
         int result = 1;
         Object $iP = this.getIP();
         result = result * 59 + ($iP == null ? 43 : $iP.hashCode());
         result = result * 59 + this.getPrivatePort();
         result = result * 59 + this.getPublicPort();
         Object $type = this.getType();
         result = result * 59 + ($type == null ? 43 : $type.hashCode());
         return result;
      }

      public String toString() {
         return "DockerContainers.Ports(iP=" + this.getIP() + ", privatePort=" + this.getPrivatePort() + ", publicPort=" + this.getPublicPort() + ", type=" + this.getType() + ")";
      }
   }
}
